//
//  TopicDetailViewController.swift
//  ModernFoodWebsite
//
//  Created by apple on 16/5/31.
//  Copyright © 2016年 Lonnie. All rights reserved.
//

import UIKit

class TopicDetailViewController: BaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        let cell = tableView.dequeueReusableCellWithIdentifier("item")
        self.tableView.tableHeaderView = cell
        self.tableView.rowHeight = UITableViewAutomaticDimension
        self.tableView.estimatedRowHeight = 100 
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    // MARK: - Table view data source

    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        // #warning Incomplete implementation, return the number of sections
        return 1
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 100
    }

  
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("comment", forIndexPath: indexPath)
 
        return cell
    }
 
}
